/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.garethc.chpt2.stringreturn.stringreturn.impl;

import za.ac.cput.garethc.chpt2.stringreturn.stringreturn.StringReturn;

/**
 *
 * @author Gareth
 */
public class StringReturnImpl implements StringReturn
{

    @Override
    public String mirrorString(String s) 
    {
        String mirror = "";
        
        for (int i = s.length() -1; i >= 0; i--)
        {
            mirror += s.charAt(i);
        }
        
        return mirror;
    }
    
}
